/**
 * represent an appointment for a patient
 *
 */

package source;
import java.util.Date;
import java.util.Map;

import activejdbc.Model;

public class Appointment extends Model {
	
	private int patient_id;
	private Date time, created;
	private Doctor doctor;
	
	public Appointment(Map<String, String> values) {
		this.fromMap(values);
	}
	
	/**
	 * print the doctor and date of the appointment
	 * @return	description of appointment
	 */
	public String toString() {
		return " Doctor: " + doctor
		+ "\n Appointment Date: " + time + "\n";
	}
	
}
